﻿package
{
	import mx.flash.UIMovieClip;
	import flash.display.MovieClip;
	public dynamic class vPlayer extends UIMovieClip
	{
		private	var	metadata:Object;
		public function set source(url2flv:String):void{try{String(url2flv).length?flvPlayer.play(url2flv):null;}catch(e:Error){}}
		override public function set width(w:Number):void{flvPlayer.width=w;}
		override public function set height(h:Number):void{flvPlayer.height=h;}

//		private	function	onMetaDataLoaded(e:MetadataEvent):void{metadata=e.info;}
//		public	function	set	skinBackgroundColor(ColorCode:uint):void{flvPlayer.skinBackgroundColor=ColorCode;}
//		public	function	get	skinBackgroundColor():uint{return flvPlayer.skinBackgroundColor;}
//		public	function	set	(ColorCode:uint):void{flvPlayer.skinBackgroundColor=ColorCode;}
//		public	function	get	skinBackgroundColor():uint{return flvPlayer.skinBackgroundColor;}
		public function vPlayer()
		{
			super();
//			flvPlayer.addEventListener(MetadataEvent.METADATA_RECEIVED, onMetaDataLoaded);
//			flvPlayer.skinBackgroundAlpha=0.75;
//			flvPlayer.skinBackgroundColor=0x005dc4;
//			flvPlayer.scaleMode=VideoScaleMode.NO_SCALE;
//			flvPlayer.align=VideoAlign.TOP_LEFT;
		}
	}
}